const {ccclass, property} = cc._decorator;

@ccclass
export default class UITip extends cc.Component {


    @property(cc.Node)
    action: cc.Node = null;

    @property(cc.Label)
    tip: cc.Label = null;

   public content : string = "";

   
    start () {
        this.tip.string = this.content;
        this.action.y = 0;
        this.action.opacity = 255;
        cc.tween(this.action).to(1, {y:200,opacity:0}).call(() => {
            this.node.destroy();
          }).start()

    }

}
